﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CourseEntry.aspx.cs" Inherits="UniversityManagementSystem.UI.CourseEntry" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/fontStyleSheet.css" rel="stylesheet" type="text/css" />
    
    <script type="text/javascript">
        
    </script>
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="fontStyle">
            <asp:Label ID="Label1" runat="server" Text="Course Title" 
                CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="courseTitleTextBox" 
                runat="server" style="margin-left: 0px" 
                CssClass="textBoxAlignment"></asp:TextBox>
            <asp:RequiredFieldValidator ID="courseTitleRequiredFieldValidator" 
                runat="server" ControlToValidate="courseTitleTextBox" 
                ErrorMessage="Course Title is requird" ForeColor="Red">*</asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:Label ID="Label2" runat="server" Text="Course Name" 
                CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;
            <asp:TextBox ID="courseNameTextBox" runat="server" 
                CssClass="textBoxAlignment"></asp:TextBox>
            <asp:RequiredFieldValidator ID="courseNameRequiredFieldValidator2" 
                runat="server" ControlToValidate="courseNameTextBox" 
                ErrorMessage="Course Name is required" ForeColor="Red">*</asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:Label ID="Label3" runat="server" Text="Course Credit" 
                CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;
            <asp:TextBox ID="courseCreditTextBox" runat="server" 
                CssClass="textBoxAlignment"></asp:TextBox>
            <asp:RequiredFieldValidator ID="courseCreditRequiredFieldValidator" 
                runat="server" ControlToValidate="courseCreditTextBox" ForeColor="Red" 
                ErrorMessage="Course Credit is required">*</asp:RequiredFieldValidator>
            <asp:RangeValidator ID="RangeValidator1" runat="server" 
                ControlToValidate="courseCreditTextBox" 
                ErrorMessage="Course Must Be Valid Number" ForeColor="Red" MaximumValue="4" 
                MinimumValue=".75" Type="Double"></asp:RangeValidator>
            <br />
            <br />
            <asp:Label ID="Label4" runat="server" Text="Description" 
                CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="courseDescriptionTextBox" runat="server" TextMode="MultiLine" 
                 CssClass="textBoxAlignment" Height="52px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="descriptionRequiredFieldValidator" 
                runat="server" ErrorMessage="Course Description is required" 
                ForeColor="Red" ControlToValidate="courseDescriptionTextBox">*</asp:RequiredFieldValidator>
            <br />
            <br />
            <br />
            <asp:Label ID="Label5" runat="server" Text="Department" 
                CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:DropDownList ID="departmentDropDownList" runat="server" CssClass="comboBoxAlignment">
            </asp:DropDownList>
            <br />
            <br />
            <asp:Label ID="Label6" runat="server" Text="Semester" CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:DropDownList ID="semesterDropDownList" runat="server" 
                CssClass="comboBoxAlignment" >
            </asp:DropDownList>

            <br />

            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;

            <asp:Button ID="saveButton" runat="server" onclick="saveButton_Click" 
                Text="Save" CssClass="button" Width="100px" />
            <br />
            <br />
        <asp:Label ID="confirmationMessage" runat="server" Text=""></asp:Label>
            <asp:ValidationSummary ID="courseEntryValidationSummary" runat="server" 
                ShowMessageBox="True" ShowSummary="False" ForeColor="Red" />
      </div>
</asp:Content>
